// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_BPT_DRAW_BLUEPRINT
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class BptDrawBlueprintTable : TableInfo
    {
        public const string C_TableName = "BPT_DRAW_BLUEPRINT";

        public const string C_DRAW_BLUEPRINT_ID = "DRAW_BLUEPRINT_ID";
        public const string C_APPLICATION_TYPE = "APPLICATION_TYPE";
        public const string C_TASK_CODE = "TASK_CODE";
        public const string C_DRAWING_PERSON = "DRAWING_PERSON";
        public const string C_APPLICATION_ITEM_ID = "APPLICATION_ITEM_ID";
        public const string C_BLUEPRINT_ID = "BLUEPRINT_ID";
        public const string C_SHEDULED_DATE = "SHEDULED_DATE";
        public const string C_FINISHED_DATE = "FINISHED_DATE";
        public const string C_STATUS = "STATUS";
        public const string C_APPROVED_DATE = "APPROVED_DATE";
        public const string C_APPROVED_BY = "APPROVED_BY";
        public const string C_REMARK = "REMARK";
        public const string C_WORKING_TIME = "WORKING_TIME";

        public BptDrawBlueprintTable()
        {
            _tableName = "BPT_DRAW_BLUEPRINT";
        }

        protected static BptDrawBlueprintTable _current;
        public static BptDrawBlueprintTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new BptDrawBlueprintTable();

            _current.Add(C_DRAW_BLUEPRINT_ID, new ColumnInfo(C_DRAW_BLUEPRINT_ID, "DrawBlueprintId", true, typeof(string)));
            _current.Add(C_APPLICATION_TYPE, new ColumnInfo(C_APPLICATION_TYPE, "ApplicationType", false, typeof(string)));
            _current.Add(C_TASK_CODE, new ColumnInfo(C_TASK_CODE, "TaskCode", false, typeof(string)));
            _current.Add(C_DRAWING_PERSON, new ColumnInfo(C_DRAWING_PERSON, "DrawingPerson", false, typeof(string)));
            _current.Add(C_APPLICATION_ITEM_ID, new ColumnInfo(C_APPLICATION_ITEM_ID, "ApplicationItemId", false, typeof(string)));
            _current.Add(C_BLUEPRINT_ID, new ColumnInfo(C_BLUEPRINT_ID, "BlueprintId", false, typeof(string)));
            _current.Add(C_SHEDULED_DATE, new ColumnInfo(C_SHEDULED_DATE, "SheduledDate", false, typeof(DateTime)));
            _current.Add(C_FINISHED_DATE, new ColumnInfo(C_FINISHED_DATE, "FinishedDate", false, typeof(DateTime)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE, "ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY, "ApprovedBy", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_WORKING_TIME, new ColumnInfo(C_WORKING_TIME, "WorkingTime", false, typeof(decimal)));

        }

        public ColumnInfo DRAW_BLUEPRINT_ID
        {
            get { return this[C_DRAW_BLUEPRINT_ID]; }
        }

        public ColumnInfo APPLICATION_TYPE
        {
            get { return this[C_APPLICATION_TYPE]; }
        }

        public ColumnInfo TASK_CODE
        {
            get { return this[C_TASK_CODE]; }
        }

        public ColumnInfo DRAWING_PERSON
        {
            get { return this[C_DRAWING_PERSON]; }
        }

        public ColumnInfo APPLICATION_ITEM_ID
        {
            get { return this[C_APPLICATION_ITEM_ID]; }
        }

        public ColumnInfo BLUEPRINT_ID
        {
            get { return this[C_BLUEPRINT_ID]; }
        }

        public ColumnInfo SHEDULED_DATE
        {
            get { return this[C_SHEDULED_DATE]; }
        }

        public ColumnInfo FINISHED_DATE
        {
            get { return this[C_FINISHED_DATE]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }

        public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }

        public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo WORKING_TIME
        {
            get { return this[C_WORKING_TIME]; }
        }



    }
}

